exports.success = (data = null) => ({
    code: 2000,
    msg: '成功',
    data
});

exports.fail = (code, msg) => ({
    code,
    msg,
    data: null
});